package com.axis2.common.message;

import com.thoughtworks.xstream.XStream;

/**
 * @Description: TODO(这里用一句话描述这个类的作用)
 * @author yemulin
 * @create 2012-8-20 下午6:16:30
 */
public abstract class Message implements Transformer {
	
	public Message fromXml(String xml) {
		return (Message) getxStream().fromXML(xml);
	}

	
	public String toXml() {
		return getxStream().toXML(this);
	}


	public abstract XStream getxStream();
	


}
